package com.homevip.user.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import com.homevip.core.dao.BaseDaoWithQuery;
import com.homevip.user.entity.User_role;

/*********************
 * 角色Dao
 * @author PyePye
 * @version 2014-12-18
 */
@Repository 
public class UserRoleDao  extends BaseDaoWithQuery<User_role, Integer>{
	@PersistenceContext
	private EntityManager em;
	
	public UserRoleDao() {
	    super(User_role.class);
	}

	@Override
	protected EntityManager getEntityManager() {
		// TODO Auto-generated method stub
		return em;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

	@Override
	protected void finalize() throws Throwable {
		// TODO Auto-generated method stub
		super.finalize();
	}

	protected UserRoleDao(Class<User_role> entityClass) {
		super(entityClass);
	}

}
